EditField.ScrollPosition Property

Syntax

ScrollPosition as Integer


Zero-based index of the topmost visible line. Read ScrollPosition to determine the first visible line; write to ScrollPosition to scroll the EditField.

Setting ScrollPosition to the last line or beyond the last line will simply move the vertical scrollbar's thumb to the bottom, not necessarily displaying the last line at the top of the EditField. ScrollPosition is 0 if the MultiLine property is False. Can be set in the IDE.